<script src="__ADMINMY__/upimg.js"></script>
<link rel="stylesheet" href="__ADMINMY__/my.css">

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            广告图
            <small>Control panel</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 控制台</a></li>
            <li class="active">广告图</li>
        </ol>
    </section>



    <!-- Main content -->
    <section class="content">

        <div class="row">
            <div class="col-md-12">
                <!-- Horizontal Form -->
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">修改广告图</h3>
                        <a href="{:url('admin/banner/index')}" class="pull-right btn btn-primary"><i class="glyphicon glyphicon-share-alt"></i>&nbsp;返回</a>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form action="{:url('admin/banner/edit',['id'=>$banner['b_id']])}" method="post"  enctype="multipart/form-data" class="form-horizontal">
                        <div class="box-body">
                            <div class="row text-center" style="margin-bottom: 20px;">
                                <div class="col-lg-12" id="preview">
                                    <img id="imghead" border="0" src="__UPLODS__<?php echo $banner['b_img']; ?>" style="width: 500px;height: 200px;" onclick="$('#previewImg').click();">
                                    <label for="" style="margin-right: 20px;">上传图片</label>
                                </div>
                                <input type="file" name="image" onchange="previewImage(this,500,350)" style="display: none;" id="previewImg">
                            </div>

                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <div class="col-sm-2">

                            </div>

                            <div class="col-sm-9">
                                <button type="submit" class="btn btn-info pull-right">提交</button>
                            </div>

                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
                <!-- /.box -->
            </div>
            <!--/.col (right) -->
        </div>

    </section>
    <!-- /.content -->
</div>